# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html


# useful for handling different item types with a single interface
from itemadapter import ItemAdapter


class FmPipeline:
    def process_item(self, item, spider):
        # 爬虫文件中提取数据的方法每yield一次item，就会运行一次
        # 该方法为固定名称函数
        print("-----我是管道，接收到了数据--->", item, "----数据属于爬虫:--->", spider)
        return item
